package com.fancy.social.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("t_user_dynamic")
public class UserDynamic {
    @TableId(value = "dynamic_id", type = IdType.AUTO)
    private Long dynamicId;
    private Long userId;
    private String content;
    private Integer dynamicType;
    private Long targetId;
    private String targetType;
    private String images; // JSON format
    private Integer likeCount;
    private Integer commentCount;
    private Integer shareCount;
    private Boolean isPublic;
    private LocalDateTime createTime;
}

